On folder move execute only one UPDATE query for all nested items.#6211
On folder move execute only one UPDATE query for all nested items.#6211allexzander wants to merge 16 commits intomasterfrom
Conversation
9b38399 to
982df39
Compare
42276df to
08e1958
Compare
|
SonarCloud Quality Gate failed.
|
ccc72ba to
cb9e5ac
Compare
147c170 to
35e5446
Compare
35e5446 to
18008eb
Compare
|
18008eb to
122ae9c
Compare
|
122ae9c to
2a7adfe
Compare
|
AppImage file: nextcloud-PR-6211-2a7adfe766f6258e420c2b51dee79447684c40c2-x86_64.AppImage |
|
mgallien
left a comment
There was a problem hiding this comment.
conflicts need to be fixed
most probably tests should be done (maybe automated and manual) to ensure no regressions
2a7adfe to
95a59f9
Compare
e952db6 to
12b9724
Compare
12b9724 to
46f2a52
Compare
46f2a52 to
02e600c
Compare
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
…target such that it is the same move. Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: alex-z <blackslayer4@gmail.com>
c79ec75 to
38ad19e
Compare
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
38ad19e to
3551c3e
Compare
|
Artifact containing the AppImage: nextcloud-appimage-pr-6211.zip SHA256 checksum: To test this change/fix you can download the above artifact file, unzip it, and run it. Please make sure to quit your existing Nextcloud app and backup your data. |
|














So, the idea here is to not execute
INSERTquery for every nested item of moved folder (there can be thousands of items and this is very very slow and also brings an issue of user moving/renaming the same folder multiple times, causing local database records to become messed up and virtual files being removed on a later sync). Instead, theUPDATEquery is executed, which is very fast. Tested on 1000 files so far so good.Let's keep it draft for now until I have time to properly finalize it.
Should fix #4636 or at least make it much less likely to happen.